import Vue from "vue";
import VueRouter from "vue-router";
import store from "../store";
import roles from "../utils/roles";

Vue.use(VueRouter);

const routes = [
  {
    path: "/test",
    name: "test",
    component: () => import("@/views/test"),
  },
  {
    path: "/",
    redirect: "/login",
  },

  {
    path: "/main",
    name: "main",
    redirect: "/repertory",
    component: () => import("@/layout"),
    children: [
      //首页模块
      {
        path: "/balance",
        name: "balance",
        component: () => import("@/views/home/balance"),
        meta: {
          name: "平衡表",
          icon: "el-icon-document",
        },
      },
      // 成型温度
      {
        path: "/calcinationRawData",
        name: "calcinationRawData",
        component: () => import("@/views/calcination/index.vue"),
        meta: {
          name: "原始数据",
          icon: "el-icon-document",
        },
      },
      {
        path: "/calcinationMinData",
        name: "calcinationMinData",
        component: () => import("@/views/calcination/minData/index.vue"),
        meta: {
          name: "分钟数据",
          icon: "el-icon-document",
        },
      },
      {
        path: "/calcinationChart",
        name: "calcinationChart",
        component: () => import("@/views/calcination/chart/index.vue"),
        meta: {
          name: "晾料报表",
          icon: "el-icon-document",
        },
      },
      {
        path: "/pasteReport",
        name: "pasteReport",
        component: () => import("@/views/calcination/paste/index.vue"),
        meta: {
          name: "挤压报表",
          icon: "el-icon-document",
        },
      },
      // 小成型温度
      {
        path: "/smallCalcinationRawData",
        name: "smallCalcinationRawData",
        component: () => import("@/views/smallCalcination/index.vue"),
        meta: {
          name: "原始数据",
          icon: "el-icon-document",
        },
      },
      {
        path: "/smallCalcinationMinData",
        name: "smallCalcinationMinData",
        component: () => import("@/views/smallCalcination/minData/index.vue"),
        meta: {
          name: "分钟数据",
          icon: "el-icon-document",
        },
      },
      {
        path: "/smallCalcinationChart",
        name: "smallCalcinationChart",
        component: () => import("@/views/smallCalcination/chart/index.vue"),
        meta: {
          name: "晾料报表",
          icon: "el-icon-document",
        },
      },
      {
        path: "/smallPasteReport",
        name: "smallPasteReport",
        component: () => import("@/views/smallCalcination/paste/index.vue"),
        meta: {
          name: "挤压报表",
          icon: "el-icon-document",
        },
      },
      //沥青温度
      {
        path: "/asphaltRawData",
        name: "asphaltRawData",
        component: () => import("@/views/asphaltTemperature/index.vue"),
        meta: {
          name: "原始数据",
          icon: "el-icon-document",
        },
      },
      {
        path: "/asphaltRawDataMinData",
        name: "asphaltRawDataMinData",
        component: () => import("@/views/asphaltTemperature/index.vue"),
        meta: {
          name: "原始数据",
          icon: "el-icon-document",
        },
      },
      {
        path: "/balance3",
        name: "balance3",
        component: () => import("@/views/balance3"),
        meta: {
          name: "平衡表3",
          icon: "el-icon-document",
        },
      },
      {
        path: "/balancegd",
        name: "balancegd",
        component: () => import("@/views/balance3/balancegd"),
        meta: {
          name: "平衡表工单",
          icon: "el-icon-document",
        },
      },
      // 库存管理模块
      {
        path: "/outbound",
        name: "outbound",
        component: () => import("@/views/spare/outbound"),
        meta: {
          name: "出库工单",
          icon: "el-icon-document-remove",
        },
      },
      {
        path: "/inventory",
        name: "inventory",
        component: () => import("@/views/spare/inventory"),
        meta: {
          name: "入库工单",
          icon: "el-icon-document-add",
        },
      },
      {
        path: "/stockAdd",
        name: "stockAdd",
        component: () => import("@/views/spare/inventory/add"),
        meta: {
          hidden: true,
        },
      },
      {
        path: "/repertory",
        name: "repertory",
        component: () => import("@/views/spare/repertory"),
        meta: {
          name: "库存查询",
          icon: "el-icon-document",
        },
      },
      // 库存配置
      {
        path: "/diameter",
        name: "diameter",
        component: () => import("@/views/stock/kucun/diameter"),
        meta: {
          name: "直径",
          icon: "el-icon-document-remove",
        },
      },
      {
        path: "/length",
        name: "length",
        component: () => import("@/views/stock/kucun/length"),
        meta: {
          name: "长度",
          icon: "el-icon-document-add",
        },
      },
      {
        path: "/model",
        name: "model",
        component: () => import("@/views/stock/kucun/model"),
        meta: {
          name: "型号",
          icon: "el-icon-document-add",
        },
      },
      {
        path: "/productType",
        name: "productType",
        component: () => import("@/views/stock/kucun/productType"),
        meta: {
          name: "生产类型",
          icon: "el-icon-document",
        },
      },
      {
        path: "/workmanshipNew",
        name: "workmanshipNew",
        component: () => import("@/views/stock/kucun/workmanshipNew"),
        meta: {
          name: "新工艺",
          icon: "el-icon-s-custom",
        },
      },
      {
        path: "/workmanship",
        name: "workmanship",
        component: () => import("@/views/stock/kucun/workmanship"),
        meta: {
          name: "工艺",
          icon: "el-icon-s-custom",
        },
      },

      {
        path: "/GoodOrDefectiveProducts",
        name: "GoodOrDefectiveProducts",
        component: () => import("@/views/stock/kucun/GoodOrDefectiveProducts"),
        meta: {
          name: "正次品",
          icon: "el-icon-s-custom",
        },
      },
      {
        path: "/position",
        name: "position",
        component: () => import("@/views/stock/kucun/position"),
        meta: {
          name: "是否外协",
          icon: "el-icon-s-custom",
        },
      },
      {
        path: "/stockbases",
        name: "stockbases",
        component: () => import("@/views/stock/kucun/stockbases"),
        meta: {
          name: "库存基本项",
          icon: "el-icon-s-operation",
        },
      },
      //库存数据
      //（1）平衡表
      {
        path: "/dianji",
        name: "dianji",
        component: () => import("@/views/stock/chanpin/BalanceSheet/dianji"),
        meta: {
          name: "电极",
          icon: "el-icon-s-custom",
        },
      },
      {
        path: "/jietou",
        name: "jietou",
        component: () => import("@/views/stock/chanpin/BalanceSheet/jietou"),
        meta: {
          name: "接头",
          icon: "el-icon-s-custom",
        },
      },
      {
        path: "/ganguo",
        name: "ganguo",
        component: () => import("@/views/stock/chanpin/BalanceSheet/ganguo"),
        meta: {
          name: "坩埚",
          icon: "el-icon-s-custom",
        },
      },
      //（2）平衡表2
      {
        path: "/dianjis",
        name: "dianjis",
        component: () => import("@/views/stock/chanpin/BalanceSheet1/dianjis"),
        meta: {
          name: "电极",
          icon: "el-icon-s-custom",
        },
      },
      {
        path: "/jietous",
        name: "jietous",
        component: () => import("@/views/stock/chanpin/BalanceSheet1/jietous"),
        meta: {
          name: "接头",
          icon: "el-icon-s-custom",
        },
      },
      {
        path: "/ganguos",
        name: "ganguos",
        component: () => import("@/views/stock/chanpin/BalanceSheet1/ganguos"),
        meta: {
          name: "坩埚",
          icon: "el-icon-s-custom",
        },
      },
      // 配置管理模块
      {
        path: "/deviceType",
        name: "deviceType",
        component: () => import("@/views/configs/deviceType"),
        meta: {
          name: "设备类型",
          icon: "el-icon-s-tools",
        },
      },
      {
        path: "/supplier",
        name: "supplier",
        component: () => import("@/views/configs/supplier"),
        meta: {
          name: "供应商",
          icon: "el-icon-s-custom",
        },
      },
      {
        path: "/specification",
        name: "specification",
        component: () => import("@/views/configs/specification"),
        meta: {
          name: "规格型号",
          icon: "el-icon-s-operation",
        },
      },

      // process

      {
        path: "/profiling",
        name: "profiling",
        component: () => import("@/views/process/profiling"),
        meta: {
          name: "电极成型",
          icon: "el-icon-coin",
        },
      },
      {
        path: "/crucibleOrders",
        name: "crucibleOrders",
        component: () => import("@/views/process/profiling/crucibleOrders"),
        meta: {
          name: "成型工单",
          icon: "el-icon-tickets",
        },
      },
      // profileQuality
      {
        path: "/profileQuaSide",
        name: "profileQuaSide",
        component: () => import("@/views/process/profileQuaSide"),
        meta: {
          name: "成型质检",
          icon: "el-icon-coin",
        },
      },
      {
        path: "/qualityItem",
        name: "qualityItem",
        component: () => import("@/views/process/profiling/qualityItem"),
        meta: {
          hidden: true,
        },
      },
      {
        path: "/electrodeRoast",
        name: "electrodeRoast",
        component: () => import("@/views/process/firstBurn"),
        meta: {
          name: "电极焙烧",
          icon: "el-icon-stopwatch",
        },
      },
      {
        path: "/electrode/roastAdd",
        name: "electrode/roastAdd",
        component: () => import("@/views/process/firstBurn/firstBurnAdd"),
        meta: {
          hidden: true,
        },
      },
      // FBCheckOrder
      {
        path: "/FBCheckOrder",
        name: "FBCheckOrder",
        component: () =>
          import("@/views/process/firstBurn/FBQuality/FBCheckOrder"),
        meta: {
          hidden: true,
        },
      },
      {
        path: "/FBQuality",
        name: "FBQuality",
        component: () => import("@/views/process/firstBurn/FBQuality"),
        meta: {
          name: "电极焙烧质检",
          icon: "el-icon-finished",
        },
      },
      {
        path: "/electrode/steep",
        name: "electrode/steep",
        component: () => import("@/views/process/steep"),
        meta: {
          name: "电极浸渍",
          icon: "el-icon-brush",
        },
      },
      {
        path: "/secondBurn",
        name: "secondBurn",
        component: () => import("@/views/process/secondBurn"),
        meta: {
          name: "电极焙烧",
          icon: "el-icon-odometer",
        },
      },
      {
        path: "/electrode/graphitizing",
        name: "electrode/graphitizing",
        component: () => import("@/views/process/graphitizing"),
        meta: {
          name: "石墨化送电",
          icon: "el-icon-c-scale-to-original",
        },
      },
      {
        path: "/graphitExcel",
        name: "graphitExcel",
        component: () => import("@/views/process/graphitizing/graphitzing.vue"),
        meta: {
          name: "石墨化装炉1",
          icon: "el-icon-c-scale-to-original",
        },
      },
      {
        path: "/graphitExcel2",
        name: "graphitExcel2",
        component: () =>
          import("@/views/process/graphitizing/graphitzingT.vue"),
        meta: {
          name: "石墨化装炉2",
          icon: "el-icon-c-scale-to-original",
        },
      },

      {
        path: "/grapInstove",
        name: "grapInstove",
        component: () => import("@/views/process/graphitizing/inStove"),
        meta: {
          name: "石墨化装炉",
          hidden: true,
        },
      },
      {
        path: "/electrode/machining",
        name: "electrode/machining",
        component: () => import("@/views/process/machining"),
        meta: {
          name: "电极机加工",
          icon: "el-icon-receiving",
        },
      },
      // 坩埚
      {
        path: "/cruciblePLC",
        name: "cruciblePLC",
        component: () => import("@/views/process/crucibles/plc.vue"),
        meta: {
          name: "坩埚PLC",
          icon: "el-icon-takeaway-box",
        },
      },
      {
        path: "/crucibleForming",
        name: "crucibleForming",
        component: () => import("@/views/process/crucible/forming"),
        meta: {
          name: "坩埚成型",
          icon: "el-icon-takeaway-box",
        },
      },
      {
        path: "/crucibleFormQuality",
        name: "crucibleFormQuality",
        component: () => import("@/views/process/crucible/formQuality"),
        meta: {
          name: "坩埚成型质检",
          icon: "el-icon-takeaway-box",
        },
      },
      {
        path: "/crucOneRoast",
        name: "crucOneRoast",
        component: () => import("@/views/process/crucible/crucOneRoast"),
        meta: {
          name: "坩埚焙烧",
          icon: "el-icon-hot-water",
        },
      },
      {
        path: "/CORQuality",
        name: "CORQuality",
        component: () => import("@/views/process/crucible/CORQuality"),
        meta: {
          name: "坩埚焙烧质检",
          icon: "el-icon-hot-water",
        },
      },
      {
        path: "/crucible/machine",
        name: "crucible/machine",
        component: () => import("@/views/process/crucible/crucibleMachine"),
        meta: {
          name: "坩埚机加工",
          icon: "el-icon-c-scale-to-original",
        },
      },
      {
        path: "/crucibleMachine/detial",
        name: "crucibleMachine/detial",
        component: () => import("@/views/process/crucible/CMdetial"),
        meta: {
          name: "坩埚机加工工单详情",
          hidden: true,
        },
      },
      {
        path: "/crucibleMachine/edit",
        name: "crucibleMachine/edit",
        component: () => import("@/views/process/crucible/CMedit"),
        meta: {
          name: "坩埚机加工修改",
          hidden: true,
        },
      },
      {
        path: "/crucibleMachine/quality",
        name: "crucibleMachine/quality",
        component: () => import("@/views/process/crucible/CMQuality"),
        meta: {
          name: "坩埚机加工质检",
          icon: "el-icon-c-scale-to-original",
        },
      },
      {
        path: "/CORdetail",
        name: "CORdetail",
        component: () => import("@/views/process/crucible/CORdetail"),
        meta: {
          name: "坩埚焙烧工单详情",
          hidden: true,
        },
      },
      {
        path: "/CORedit",
        name: "CORedit",
        component: () => import("@/views/process/crucible/CORedit"),
        meta: {
          name: "修改坩埚焙烧工单",
          hidden: true,
        },
      },
      // 环保
      {
        path: "/environmentForm",
        name: "environmentForm",
        component: () => import("@/views/environment/profiling"),
        meta: {
          name: "成型PLC",
          icon: "el-icon-bank-card",
        },
      },
      {
        path: "/environmentRoast",
        name: "environmentRoast",
        component: () => import("@/views/environment/naturalGas"),
        meta: {
          name: "焙烧温度",
          icon: "el-icon-bank-card",
        },
      },
      {
        path: "/environmentSteep",
        name: "environmentSteep",
        component: () => import("@/views/environment/steep"),
        meta: {
          name: "浸渍PLC",
          icon: "el-icon-bank-card",
        },
      },
      {
        path: "/environmentTech",
        name: "environmentTech",
        component: () => import("@/views/environment/tunnel"),
        meta: {
          name: "隧道窑PLC",
          icon: "el-icon-bank-card",
        },
      },
      {
        path: "/environmentGrap",
        name: "environmentGrap",
        component: () => import("@/views/environment/graphitizing"),
        meta: {
          name: "石墨化PLC",
          icon: "el-icon-bank-card",
        },
      },
      {
        path: "/hisReport",
        name: "hisReport",
        component: () =>
          import("@/views/process/graphitizing/hisReport/index.vue"),
        meta: {
          name: "历史报表",
          icon: "el-icon-tickets",
        },
      },
      {
        path: "/hisReportTest",
        name: "hisReportTest",
        component: () =>
          import("@/views/process/graphitizing/hisReportTest/index.vue"),
        meta: {
          name: "历史报表2.0",
          icon: "el-icon-tickets",
        },
      },
      {
        path: "/roastReport",
        name: "roastReport",
        component: () => import("@/views/process/crucible/hisReport/index.vue"),
        meta: {
          name: "焙烧报表",
          icon: "el-icon-tickets",
        },
      },
      {
        path: "/oneFurnace",
        name: "oneFurnace",
        component: () =>
          import("@/views/process/crucible/oneFurnace/index.vue"),
        meta: {
          name: "一炉工单",
          icon: "el-icon-tickets",
        },
      },
      // 添加一路工单数据
      {
        path: "/addOneFurnaceForm",
        name: "addOneFurnaceForm",
        component: () =>
          import("@/views/process/crucible/oneFurnace/addOneFurnaceForm.vue"),
        meta: {
          name: "新增一炉工单",
          hidden: true,
        },
      },
      {
        path: "/steepReport",
        name: "steepReport",
        component: () => import("@/views/process/steep/hisReport/index.vue"),
        meta: {
          name: "浸渍报表",
          icon: "el-icon-tickets",
        },
      },
      {
        path: "/technologyReport",
        name: "technologyReport",
        component: () =>
          import("@/views/process/secondBurn/hisReport/index.vue"),
        meta: {
          name: "隧道窑报表",
          icon: "el-icon-tickets",
        },
      },
      {
        path: "/electrode/steep",
        name: "electrode/steep",
        component: () => import("@/views/process/outHelp/steep"),
        meta: {
          name: "外协电极浸渍",
          icon: "el-icon-discount",
        },
      },
      {
        path: "/outHelpElecTechnology",
        name: "outHelpElecTechnology",
        component: () => import("@/views/process/outHelp/technology"),
        meta: {
          name: "外协电极隧道窑",
          icon: "el-icon-discount",
        },
      },
      {
        path: "/outHelpElecGraphitizing",
        name: "outHelpElecGraphitizing",
        component: () => import("@/views/process/outHelp/graphitizing"),
        meta: {
          name: "外协电极石墨化",
          icon: "el-icon-discount",
        },
      },
      {
        path: "/outHelpElecMachining",
        name: "outHelpElecMachining",
        component: () => import("@/views/process/outHelp/machining"),
        meta: {
          name: "外协电极机加工",
          icon: "el-icon-discount",
        },
      },
      {
        path: "/outHelpElecGraphitizing",
        name: "outHelpElecGraphitizing",
        component: () => import("@/views/process/outHelp/graphitizing"),
        meta: {
          name: "外协电极石墨化",
          icon: "el-icon-discount",
        },
      },
      {
        path: "/outEleInStock/quality",
        name: "outEleInStock/quality",
        component: () => import("@/views/process/outHelp/instockQuality"),
        meta: {
          name: "外协电极入库质检",
          icon: "el-icon-discount",
        },
      },
      {
        path: "/outEleSteep/quality",
        name: "outEleSteep/quality",
        component: () => import("@/views/process/outHelp/steepQuality"),
        meta: {
          name: "外协电极浸渍质检",
          icon: "el-icon-discount",
        },
      },
      {
        path: "/outEleTechnology/quality",
        name: "outEleTechnology/quality",
        component: () => import("@/views/process/outHelp/technologyQuality"),
        meta: {
          name: "外协电极隧道窑质检",
          icon: "el-icon-discount",
        },
      },
      {
        path: "/outEleGraphitizing/quality",
        name: "outEleGraphitizing/quality",
        component: () => import("@/views/process/outHelp/graphitizingQuality"),
        meta: {
          name: "外协电极石墨化质检",
          icon: "el-icon-discount",
        },
      },
      {
        path: "/outEleMachine/quality",
        name: "outEleMachine/quality",
        component: () => import("@/views/process/outHelp/machiningQuality"),
        meta: {
          name: "外协电极机加工质检",
          icon: "el-icon-discount",
        },
      },
      {
        path: "/outEleOutSock/quality",
        name: "outEleOutSock/quality",
        component: () => import("@/views/process/outHelp/outStckQuality"),
        meta: {
          name: "外协电极出库质检",
          icon: "el-icon-discount",
        },
      },
      {
        path: "/inspection/assay",
        name: "inspection/assay",
        component: () => import("@/views/inspection/assay"),
        meta: {
          name: "化验分析",
          icon: "el-icon-discount",
        },
      },
      {
        path: "/inspection/screening",
        name: "inspection/screening",
        component: () => import("@/views/inspection/screening"),
        meta: {
          name: "筛分记录",
          icon: "el-icon-discount",
        },
      },
      // configCenter
      {
        path: "/environmentDTa",
        name: "environmentDTa",
        component: () => import("@/views/configCenter/device Table"),
        meta: {
          name: "设备表",
          icon: "el-icon-document-copy",
        },
      },
      {
        path: "/deviceUnit",
        name: "deviceUnit",
        component: () => import("@/views/configCenter/device Unit"),
        meta: {
          name: "设备单位表",
          icon: "el-icon-document-copy",
        },
      },
      {
        path: "/environmentDTy",
        name: "environmentDTy",
        component: () => import("@/views/configCenter/device Type"),
        meta: {
          name: "设备类型",
          icon: "el-icon-wallet",
        },
      },
      {
        path: "/platform",
        name: "platform",
        component: () => import("@/views/configCenter/platform"),
        meta: {
          name: "平台参数",
          icon: "el-icon-monitor",
        },
      },
      {
        path: "/configuration",
        name: "configuration",
        component: () => import("@/views/configCenter/configuration"),
        meta: {
          name: "配置参数",
          icon: "el-icon-cpu",
        },
      },
      {
        path: "/formGengeration",
        name: "formGengeration",
        component: () => import("@/views/configCenter/formGengeration"),
        meta: {
          name: "表单生成",
          icon: "el-icon-document-checked",
        },
      },
      {
        path: "/formShow",
        name: "formShow",
        component: () => import("@/views/configCenter/formShow"),
        meta: {
          name: "表单展示",
          icon: "el-icon-document",
        },
      },
      {
        path: "/formType",
        name: "formType",
        component: () => import("@/views/configCenter/formType"),
        meta: {
          name: "表单类型",
          icon: "el-icon-document-add",
        },
      },
      // authority
      {
        path: "/api",
        name: "api",
        component: () => import("@/views/authority/api"),
        meta: {
          name: "api管理",
          icon: "el-icon-postcard",
        },
      },
      {
        path: "/role",
        name: "role",
        component: () => import("@/views/authority/role/test"),
        meta: {
          name: "角色管理",
          icon: "el-icon-s-check",
        },
      },
      {
        path: "/user",
        name: "user",
        component: () => import("@/views/authority/user"),
        meta: {
          name: "用户管理",
          icon: "el-icon-user",
        },
      },

      // personal
      {
        path: "/personal",
        name: "personal",
        component: () => import("@/views/personal"),
        meta: {
          name: "个人中心",
          icon: "el-icon-user",
        },
      },
    ],
  },
  {
    path: "/reportDetail",
    name: "reportDetail",
    component: () =>
      import("@/views/process/graphitizing/hisReport/reportDetail.vue"),
    meta: {
      name: "历史报表详情",
      hidden: true,
    },
  },

  {
    path: "/reportDetailTest",
    name: "reportDetailTest",
    component: () =>
      import("@/views/process/graphitizing/hisReportTest/reportDetail.vue"),
    meta: {
      name: "历史报表详情2.0",
      hidden: true,
    },
  },
  {
    path: "/reportDetail1",
    name: "reportDetail",
    component: () =>
      import("@/views/process/crucible/hisReport/reportDetail.vue"),
    meta: {
      name: "焙烧报表详情",
      hidden: true,
    },
  },
  {
    path: "/reportDetail2",
    name: "reportDetail",
    component: () =>
      import("@/views/process/secondBurn/hisReport/reportDetail.vue"),
    meta: {
      name: "焙烧报表详情",
      hidden: true,
    },
  },
  {
    path: "/reportDetail3",
    name: "reportDetail",
    component: () => import("@/views/process/steep/hisReport/reportDetail.vue"),
    meta: {
      name: "焙烧报表详情",
      hidden: true,
    },
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login"),
    meta: {
      hidden: true,
    },
  },
  {
    path: "*",
    name: "404",
    component: () => import(/* webpackChunkName: "about" */ "../views/404"),
    meta: {
      hidden: true,
    },
  },
];
// {
//   path: '/about',
//   name: 'About',
//   // route level code-splitting
//   // this generates a separate chunk (about.[hash].js) for this route
//   // which is lazy-loaded when the route is visited.
//   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
// }

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes: routes,
});
// function getRoute (params) {
//   if (params[0].children !== undefined) {
//     getRoute(params[0].children)
//   } else {
//     return params[0].path
//   }
// }
// router.beforeEach((to, from, next) => {
//   if (
//     to.fullPath === "/login" ||
//     to.fullPath === "/404" ||
//     to.fullPath === "/main"
//   ) {
//     next();
//   } else {
//     // console.log(to)
//     var hasParameterPath = JSON.parse(JSON.stringify(to.name));
//     const path = `"path":"/${hasParameterPath}"`;
//     const routerMap = store.getters.getUserRouter || roles["测试管理员"];
//     const roleForm = JSON.stringify(routerMap).indexOf(path) === -1;
//     if (roleForm) next("/login");
//     if (to.meta.hidden !== true) store.commit("SET_CURRENTPAGE", to.fullPath);
//     next();
//   }
// });
export default router;
